// ==========================================================================
// Interface file for Helper
//
// Solution for CPSC 4780 Fall 2010 Group Project
// FeiWang
// April 8, 2011
//
// Helps the socket send and receive data
// ==========================================================================
#ifndef HELPER_H
#define HELPER_H

#include"ServerSocket.h"
#include"ClientSocket.h"
#include"SocketException.h"
using namespace std;
// ==========================================================================
// function name : clntsock_receive
// take a string - the msg received
// take a ClientSocket * - the ClientSocket handle the trans
// function will recive msg and reply an ack
// ==========================================================================
void clntsock_receive(string & request , ClientSocket * Socket);
// ==========================================================================
// function name : clntsock_send
// take a string - the msg need to be send
// take a ClientSocket * - the ClientSocket handle the trans
// function will recive msg and reply an ack
// ==========================================================================
void clntsock_send(string  msg , ClientSocket * Socket);
// ==========================================================================
// function name : svcsock_receive
// take a string - the msg received
// take a ClientSocket * - the ClientSocket handle the trans
// function will recive msg and reply an ack
// ==========================================================================
void svcsock_receive(string & request , ServerSocket * Socket);
// ==========================================================================
// function name : svcsock_send_send
// take a string - the msg need to be send
// take a ServerSocket * - the ClientSocket handle the trans
// function will recive msg and reply an ack
// ==========================================================================
void svcsock_send(string  msg , ServerSocket * Socket);

#endif
